<!-- user add -->
<div class="modal fade" id="user-form-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_create_new_user");?></h4>
				<span id="user-add-loader" style="display:none"><img src="./images/loader.gif" /></span>
				<div class="alert alert-success" id="user-add-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_add_confirm");?></div>
				<div class="alert alert-danger" id="user-add-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_add_failed");?></div>
			</div>
			<div class="modal-body">
				<form id="user-add-form">
					<div class="form-group">
						<label for="userFirstName"><?php echo getLocalText("ui_user_firstname");?></label>
						<input type="text" class="form-control" required="" id="userFirstName" placeholder="<?php echo getLocalText("ui_user_firstname");?>">
					</div>
					<div class="form-group">
						<label for="userLastName"><?php echo getLocalText("ui_user_lastname");?></label>
						<input type="text" class="form-control" required="" id="userLastName" placeholder="<?php echo getLocalText("ui_user_lastname");?>">
					</div>
					<div class="form-group">
						<label for="userEmail"><?php echo getLocalText("ui_user_email");?></label>
						<input type="email" class="form-control" required="" id="userEmail" placeholder="<?php echo getLocalText("ui_user_email");?>">
					</div>
					<div class="checkbox">
					    <label>
					      <input type="checkbox" id="userAdmin"> <?php echo getLocalText("ui_user_admin");?>
					    </label>
				  	</div>
				  	<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo getLocalText("ui_close");?></button>
						<button type="submit" class="btn btn-primary"><?php echo getLocalText("ui_save");?></button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<!-- end user add -->
<!-- user delete -->
<div class="modal fade" id="user-remove-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_user_remove");?></h4>
			</div>
			<div class="modal-body">
				<input type="hidden" id="userToDeleteId" value=""/>
				<div id="user-remove-message" ><p><?php echo getLocalText("ui_confirm_delete_user");?><p></div>
				<div id="user-remove-loader" style="display:none"><img src="./images/loader.gif" /></div>
				<div class="alert alert-success" id="user-remove-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_remove_success");?></div>
				<div class="alert alert-danger" id="user-remove-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_remove_failed");?></div>
			</div>
		  	<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" ><?php echo getLocalText("ui_no");?></button>
				<button type="button" class="btn btn-primary" id="user_delete_confirm_button"><?php echo getLocalText("ui_yes");?></button>
			</div>
		</div>
	</div>
</div>
<!-- end user delete -->
<!-- user edit -->
<div class="modal fade" id="user-form-edit-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_edit_user");?></h4>
				<span id="user-edit-loader" style="display:none"><img src="./images/loader.gif" /></span>
				<div class="alert alert-success" id="user-edit-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_edit_confirm");?></div>
				<div class="alert alert-danger" id="user-edit-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_edit_failed");?></div>
			</div>
			<div class="modal-body">
				<form id="user-edit-form">
					<input type="hidden" class="form-control" required="" id="userToEditId" >
					<div class="form-group">
						<label for="userEditFirstName"><?php echo getLocalText("ui_user_firstname");?></label>
						<input type="text" class="form-control" required="" id="userEditFirstName" placeholder="<?php echo getLocalText("ui_user_firstname");?>">
					</div>
					<div class="form-group">
						<label for="userEditLastName"><?php echo getLocalText("ui_user_lastname");?></label>
						<input type="text" class="form-control" required="" id="userEditLastName" placeholder="<?php echo getLocalText("ui_user_lastname");?>">
					</div>
					<div class="form-group">
						<label for="userEditEmail"><?php echo getLocalText("ui_user_email");?></label>
						<input type="email" class="form-control" required="" id="userEditEmail" placeholder="<?php echo getLocalText("ui_user_email");?>">
					</div>
					<div class="checkbox">
					    <label>
					      <input type="checkbox" id="userEditAdmin"> <?php echo getLocalText("ui_user_admin");?>
					    </label>
				  	</div>
				  	<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo getLocalText("ui_close");?></button>
						<button type="submit" class="btn btn-primary"><?php echo getLocalText("ui_save");?></button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<!-- end user edit -->
<!-- user edit my profile -->
<div class="modal fade" id="user-form-myprofile-edit-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_my_profile_edit_user");?></h4>
				<span id="user-myprofile-edit-loader" style="display:none"><img src="./images/loader.gif" /></span>
				<div class="alert alert-success" id="user-myprofile-edit-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_myprofile_edit_confirm");?></div>
				<div class="alert alert-danger" id="user-myprofile-edit-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_myprofile_edit_failed");?></div>
				<div class="alert alert-danger" id="user-myprofile-edit-password-confirm" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_user_myprofile_password_confirm_error");?></div>
			</div>
			<div class="modal-body">
				<form id="user-myprofile-edit-form">
					<input type="hidden" class="form-control" required="" id="userProfileToEditId" >
					<div class="form-group">
						<label for="userProfileEditFirstName"><?php echo getLocalText("ui_user_firstname");?></label>
						<input type="text" class="form-control" required="" id="userProfileEditFirstName" placeholder="<?php echo getLocalText("ui_user_firstname");?>"  disabled>
					</div>
					<div class="form-group">
						<label for="userProfileEditLastName"><?php echo getLocalText("ui_user_lastname");?></label>
						<input type="text" class="form-control" required="" id="userProfileEditLastName" placeholder="<?php echo getLocalText("ui_user_lastname");?>"  disabled>
					</div>
					<div class="form-group">
						<label for="userProfileEditEmail"><?php echo getLocalText("ui_user_email");?></label>
						<input type="email" class="form-control" required="" id="userProfileEditEmail" placeholder="<?php echo getLocalText("ui_user_email");?>"  disabled>
					</div>
					<div class="form-group">
						<label for="userProfilePassword"><?php echo getLocalText("ui_user_password");?></label>
						<input type="password" class="form-control" required="" id="userProfilePassword" placeholder="<?php echo getLocalText("ui_user_password");?>" >
					</div>
					<div class="form-group">
						<label for="userProfilePasswordConfirm"><?php echo getLocalText("ui_user_password_confirm");?></label>
						<input type="password" class="form-control" required="" id="userProfilePasswordConfirm" placeholder="<?php echo getLocalText("ui_user_password_confirm");?>" >
					</div>
				  	<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo getLocalText("ui_close");?></button>
						<button type="submit" class="btn btn-primary"><?php echo getLocalText("ui_save");?></button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<!-- end user edit -->
<!-- phases management modal -->
<div class="modal fade" id="phases-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_phases");?></h4>
				<span id="phases-loader" style="display:none"><img src="./images/loader.gif" /></span>
				<div class="alert alert-success" id="phase-add-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_phase_add_success");?></div>
				<div class="alert alert-danger" id="phase-add-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_phase_add_failed");?></div>
			</div>
			<div class="modal-body">
				<form id="phase-add-form" class="form-inline">
					<div class="form-group">
						<label class="sr-only" for="phaseName"><?php echo getLocalText("ui_phase_name");?></label>
    					<input type="text" class="form-control" required="" id="phaseName" placeholder="<?php echo getLocalText("ui_phase_name");?>">
						<button type="submit" class="btn btn-default"><?php echo getLocalText("ui_add");?></button>
					</div>
				</form>
			</div>
			<div class="modal-footer" id="phases_list">
				<div class="btn btn-primary btn-lg btn-block">Block level button</div>
				<div class="btn btn-default btn-lg btn-block">Block level button</div>
			</div>
		</div>
	</div>
</div>
<!-- end phases management modal -->
<!-- phase delete -->
<div class="modal fade" id="phase-remove-modal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title"><?php echo getLocalText("ui_phase_remove");?></h4>
			</div>
			<div class="modal-body">
				<input type="hidden" id="phaseToDeleteId" value=""/>
				<div id="phase-remove-message" ><p><?php echo getLocalText("ui_confirm_delete_phase");?><p></div>
				<div id="phase-remove-loader" style="display:none"><img src="./images/loader.gif" /></div>
				<div class="alert alert-success" id="phase-remove-success" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_phase_remove_success");?></div>
				<div class="alert alert-danger" id="phase-remove-failed" style="display:none;margin-top: 5px;"><?php echo getLocalText("ui_phase_remove_failed");?></div>
			</div>
		  	<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" ><?php echo getLocalText("ui_no");?></button>
				<button type="button" class="btn btn-primary" id="phase_delete_confirm_button"><?php echo getLocalText("ui_yes");?></button>
			</div>
		</div>
	</div>
</div>
<!-- end user delete -->